package com.jumper.terry.toastlibrary;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Toast;

import com.jumper.terry.toastcompatlib.ToastCompat;

public class MainActivity extends AppCompatActivity {


    ToastCompat compat;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

//        compat = new ToastCompat(this);
//        compat.setDuration(Toast.LENGTH_SHORT);
    }






    public void show1(View view){
        new ToastCompat(this).setDuration(Toast.LENGTH_SHORT).setText("sbsbsbsbsbsbsbsbbsbsbsbsbsbsb").show();
    }



    public void show2(View view){
        compat.setText("我去群殴去怄气群殴哦群殴去去偶去哦群殴去 ").show();
    }


}
